package com.xyj.week03;

public class T6 {
    public static void main(String[] args) {
        int i=6;
        while (i<8){
            System.out.println("开启循环");
            i=9;
            System.out.println("结束循环");
        }
    }




    public static int easeAlgorithm(int n ){
        //默认FALSE的为素数
        boolean all[]=new boolean[n];
        int count=0;
        for (int i = 2; i < n; i++) {
            if (!all[i]){
                count++;
                for (int j = i*i; j <n; j+=i) {
                    all[j]=true;
                }
            }
        }
        return count;
    }
}
